﻿using System;
using System.Reflection;
using Loki.Utils;
using NUnit.Framework;

[SetUpFixture]
public class TestSetup
{
    private const string LogFile = "Luna.Data.Test.log4net.config";

    [TearDown]
    public void Clean()
    {
        Toolkit.Reset();
    }

    [SetUp]
    public void Initialize()
    {
        try
        {
            Toolkit.Initialize();

            // Initialize Data engine
            Toolkit.Logger.Configure(Assembly.GetExecutingAssembly().GetManifestResourceStream(LogFile));
        }
        catch (Exception ex)
        {
            Console.Out.WriteLine(ex.Message);
        }
    }
}